package com.example.springbootexp03demo.config;

import com.example.springbootexp03demo.services.CrawlVirusData;
import org.springframework.boot.CommandLineRunner;

//@Component
public class MyCommandLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        CrawlVirusData crawlVirusData = new CrawlVirusData();
        crawlVirusData.fetchCoronaVirusData();
        System.out.println("Crawl Data Success");
    }

}
